<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="common.css">
</head>
<body>
    <div class="days">
        <form action="./index.php" method="get">
        	<a href="./index.php" >首页</a>
            <a href="./index.php?act=day&version=3g&year=<?php echo $date[0];?>&month=<?php echo $date[1];?>&day=<?php echo $date[2];?>&days=<?php echo $days;?>">3G</a>
            <a href="./index.php?act=day&version=wap&year=<?php echo $date[0];?>&month=<?php echo $date[1];?>&day=<?php echo $date[2];?>&days=<?php echo $days;?>">wap</a>
            <a href="./index.php?act=day&version=renrenapp&year=<?php echo $date[0];?>&month=<?php echo $date[1];?>&day=<?php echo $date[2];?>&days=<?php echo $days;?>">renrenapp</a>
            <input type="hidden" name="version" value="<?php echo $version;?>" />
            <input type="hidden" name="act" value="<?php echo $act;?>" />
            <input type="hidden" name="page" value="<?php echo isset($which_page)?$which_page:0;?>" />
            <input type="text" name="year" size="4" value="<?php echo $date[0];?>">
            <span>年</span>
            <input type="text" name="month" size="4" value="<?php echo $date[1];?>">
            <span>月</span>
            <input type="text" name="day" size="4" value="<?php echo $date[2];?>">
            <span>日 往前</span>
            <input type="text" name="days" size="4" value="<?php echo !empty($days)?$days:7;?>"/>
            <span>天内</span>
            <input type="submit" value="查看">
        </form>
    </div>
    <div class="pages">
        <ul>
            <?php foreach($get_info->page[$version] as $key=>$val){  ?>
            <li><a href="./index.php?act=page&version=<?php echo $version;?>&page=<?php echo $key;?>&year=<?php echo $date[0];?>&month=<?php echo $date[1];?>&day=<?php echo $date[2];?>&days=<?php echo $days;?>"><?php echo $key;?></a></li>
            <?php } ?>
        </ul>
    </div>
    <div class="images">
    <ul>
        <?php if($act == 'page'){ ?>
        <p>当前页面:<?php echo $which_page;?></p>
        <li><img src="./page_num.png"></li>
        <li><img src="./page_avg_run_time.png"></li>
        <li><img src="./page_variance.png"></li>
        <?php } ?>
        <?php if($act == 'day'){ ?>
        <li><img src="./day_num.png"></li>
        <li>
            <form action="./index.php" method="GET">
                <input type="hidden" name="version" value="<?php echo $version;?>" />
                <input type="hidden" name="act" value="<?php echo $act;?>" />
                <input type="hidden" name="year" value="<?php echo $date[0];?>" />
                <input type="hidden" name="month" value="<?php echo $date[1];?>" />
                <input type="hidden" name="day" value="<?php echo $date[2];?>" />
                <input type="hidden" name="days" value="<?php echo $days;?>" />
                设置y轴最大加载时间:<input type="text" name="max_avg_time" />
                <input type="submit" value="查看" />
            </form>
        </li>
        <li><img src="./day_avg_time.png"></li>
        <li><img src="./day_run_time.png"></li>
        <?php } ?>
    </ul>
    </div>
</body>
</html>